package com.crud.project.dao;

import com.crud.project.po.Permission;
import com.crud.project.po.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IPermissionDao {
    List<Permission> findAllPermission();

    void insertPermission(Permission permission);

    void deletePermissionById(Long id);

    Permission findAllPermissionById(Long id);

    String findPermissionNameById(Long id);

    void updatePermission(Permission permission);

   void deletePermissionByRoleId(Long id);

    List<Permission> findPermissionList();

    void insertPermissionById(Long role_id, Long permission_id);

    List<String> findPermissionListByRoleId(Long id);
}
